* to send the rest of the buffer.
*/
- if (retval && (priv->buf_offset + count) >= 128) {
+ if (retval && (priv->buf_offset + count) > 128) {
retval = (* priv->image_module->load_increment) (
priv->context,
buf,
{
GifData *context;
- context = (GifData *) type->UserData;
+ context = (GifData *) (type->UserData);
g_print ("in myInputFunc\nSize requested is %d\n", length);
if (length > context->size - context->ptr) {
/* Sigh, GdkRGB does not have gdk_draw_rgb_32_image_dithalign(), so we
* have to pack the buffer first.
*/
- if (apb->has_alpha)
- buf = remove_alpha (apb, src_x, src_y, width, height, &rowstride);
- else {
+ if (apb->has_alpha) {
+// buf = remove_alpha (apb, src_x, src_y, width, height, &rowstride);
+ } else {
buf = apb->pixels + src_y * apb->rowstride + src_x * 3;
rowstride = apb->rowstride;
}
* to send the rest of the buffer.
*/
- if (retval && (priv->buf_offset + count) >= 128) {
+ if (retval && (priv->buf_offset + count) > 128) {
retval = (* priv->image_module->load_increment) (
priv->context,
buf,